<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
  </head>
  
  <body>
    <form action="<%=basePath%>addEmp.action" method="post">
    	<table border="2" align="center" >
    		<tr>
    			<th>姓名:</th>
    			<td><input type="text" name="name"/></td>
    		</tr>
    		<tr>
    			<th>性别:</th>
    			<td><input type="radio" name="sex" value="男"/>男
    			<input type="radio" name="sex" value="女" checked="checked">女
    			</td>
    		</tr>
     		<tr>
    			<th>入职时间:</th>
    			<td><input type="text" name="time" value="2016-8-12"/></td>
    		</tr>
    		<tr>
    			<td align="center" colspan="2"><input type="submit" value="提交"/></td>
    		</tr> 
    	</table>
    </form>
  </body>
</html>
